package org.grottarossa.tms.ui.console;

import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;

import org.grottarossa.ui.core.i18n.DM;

public class ConsolleProviderService {

	protected ResourceBundle m_commonLocalizer = DM.instance().getBundle(Console.class.getPackage().getName() + ".CommonMessages");

	List<Console> vConsoles;

	public ConsolleProviderService(List<Console> items) {

		vConsoles = new ArrayList<Console>();
		for ( Console console : items) {
			console.getPresenter().setCommonLocalizer(m_commonLocalizer);
			console.getPresenter().setApplicationName(console.getAppName());
			vConsoles.add(console);
		}
	}
	public List<Console> getConsoles() { return vConsoles;}
}
